package org.stars.daostars.core.runtime.columns;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.stars.daostars.conversion.TypeHandler;

public class ObjectColumn implements ColumnProcessor {

	public static ColumnProcessor instance=new ObjectColumn();
	
	@Override
	public Object execute(ResultSet rs, int index, Class<?> propType, TypeHandler handler) throws SQLException {
		Object value = rs.getObject(index);
		
		if (rs.wasNull())
			value = null;
		
		return value;
	}

}
